package com.ssy.lingxi.after.sale.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 评价等级
 * @author 伍将
 * @date 2020/9/2
 * @version 2.0.0
 */
public enum EvaluateLevelEnum {

    ONE(1, "1分"),
    TOW(2, "2分"),
    THREE(3, "3分"),
    FOUR(4, "4分"),
    FIVE(5, "5分");

    private final Integer code;
    private final String message;

    EvaluateLevelEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }
}
